package com.wicket.okrpbff.biz.service.dto.common;

import com.wicket.okrpbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffSemanticEngineDto
 * @使用场景
 */
@Data
public class BffSemanticEngineDto extends PagedDto implements Serializable {

    /**
     * 模板引擎ID
     */
    @ApiModelProperty("模板引擎ID ")
    private String templateSemanticEngineId;

    /**
     * 模板引擎标识
     */
    @ApiModelProperty("模板引擎标识")
    private String templateSemanticEngineCode;

    /**
     * 模板引擎名称
     */
    @ApiModelProperty("模板引擎名称")
    private String emplateEngineName;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operationTime;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
/**
     * 操作时间 
     */
    @ApiModelProperty("操作时间")
    private Date	 operateTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffSemanticEngineDto that = (BffSemanticEngineDto) o;
      return  templateSemanticEngineId == that.templateSemanticEngineId&&templateSemanticEngineCode == that.templateSemanticEngineCode&&emplateEngineName == that.emplateEngineName&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operationTime == that.operationTime&&userId == that.userId&&userFace == that.userFace&&idCardName == that.idCardName&&nickName == that.nickName&&operateTime == that.operateTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), templateSemanticEngineId,templateSemanticEngineCode,emplateEngineName,subjectLifeCycle,operationInductionId,operationTime,userId,userFace,idCardName,nickName,operateTime);
    }



}
   